package com.clothe.dao;

import java.sql.Connection;
import java.util.List;

import com.clothe.dto.UserInfo;

public interface IUserInfoDAO {

	public boolean save(UserInfo userInfo) throws Exception;

	public boolean delete(int id) throws Exception;

	public boolean update(UserInfo userInfo) throws Exception;

	public UserInfo get(int id) throws Exception;

	public List<UserInfo> list(int pageSize, int pageNo ,String queryString) throws Exception;
	
	public UserInfo login(String account, String password) throws Exception;
	
	public int getCount(String queryString) throws Exception;

	public void setConn(Connection conn);

	public boolean updatePsw(String newpsw,UserInfo userInfo) throws Exception;

}
